package service

import (
	"rongyy/src/models"
)

type DictService struct {
	d *models.NationDictModel
}

func (ds *DictService) Nation() ([]models.NationDictModel, int64, error) {
	sm := &models.NationDictModel{}
	data, total, err := sm.Query()
	if err != nil {
		return nil, 0, err
	}
	return data, total, nil
}
